package lab02.test35;

public class Salesman extends Employee {
    double monthSalary;
    int quanity;
    double allowance;

    public Salesman(String name,double monthSalary,
                    int quanity,double allowance) {
        super(name);
        this.monthSalary=monthSalary;
        this.quanity=quanity;
        this.allowance=allowance;
    }

    public double computeSalary() {
        return monthSalary*quanity+allowance;
    }
}
